import java.util.HashMap;
import java.util.LinkedList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test01 {
    public static void main(String[] args) {
        String s = "1 第1w";
        String total = "\\d(\\.[\\s\\p{Zs}]*\\d)*\\s+([\\u4E00-\\u9FA5]|\\d|\\w)*";
//        String pattern2 = "^\\d((\\.\\d)+|(\\.[\\s\\p{Zs}]\\d)|(\\s)+\\d)(\\s)+";
//        String pattern3 = "^\\d((\\.\\d))+(\\s)*";
        Pattern r = Pattern.compile(total);
        Matcher m = r.matcher(s);
        System.out.println(m.matches());

    }
}
